import {Component, OnInit} from '@angular/core';
import {UserInfo} from "../model/UserInfo";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})

export class AppComponent implements OnInit {
  private userInfos: UserInfo[];
  constructor() {
    this.userInfos = [
      new UserInfo( '张三', 18, '男', '1994-01-01' ),
      new UserInfo( '李四', 28, '男', '1981-01-01' ),
      new UserInfo( '王五', 21, '女', '1994-04-01' ),
    ];
  }
  ngOnInit() {
  }
}
